package com.huwaiwai.disruptor.demo01;


import com.lmax.disruptor.EventHandler;

/**
 * 事件处理器-事件消费者
 * Created by huweiwei on 2017/4/11.
 */
public class LongEventHandler implements EventHandler<LongEvent> {
    @Override
    public void onEvent(LongEvent longEvent, long l, boolean b) throws Exception {
        System.out.println(Thread.currentThread().getName() + "--" + longEvent.getValue());
    }
}
